using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CircleGuide : GuideBase
{
    private float radius;

    public override void Guide(Canvas canvas, RectTransform target)
    {
        base.Guide(canvas, target);

        float width = (targetCorners[3].x - targetCorners[0].x) / 2;
        float height = (targetCorners[1].y - targetCorners[0].y) / 2;
        radius = Mathf.Sqrt(width * width + height * height);
        material.SetFloat("_Slider", radius);
    }
}
